import request from '@/utils/request'

//获取机构信息
export function getLeftDeptInfo(data) {
    return request({
        url: '/api/platform/v2/getDeptInfo?deptId='+data.deptId,
        method: 'post',
        headers: {
            isToken: true
        }
    })
}

//获取当前账号管理机构列表
export function getDeptTreeList(data) {
    return request({
        url: '/api/platform/v2/getDeptTreeList',
        method: 'post',
        headers: {
            isToken: true
        },
        data
    })
}

// 获得地区和机构树 system/dept/treeselect
export function treeselect() {
    return request({
        url: '/system/dept/treeselect',
        method: 'get',
        headers: {
            isToken: true
        },
    })
}
